<template>
  <div id="draw">
  <div id="top">
    <div id="topBar">
      <router-link :to="{path:'/rankingList'}"><van-icon name="arrow-left" style="float: left;margin-top: 0.5rem;margin-left: 0.5rem"/>
        <p style="float: left">抽奖</p></router-link>
    </div>
  </div>
    <div id="mid">
    <div id="plate">

    </div>
      <van-button type="default" style="width: 9rem;letter-spacing: 0.5rem;background:#edf00c;font-weight: bold;color: #ee4949; font-size: 1.2rem;padding-left:1.1rem" round>点击抽奖</van-button>
      <p style="font-size: 0.8rem;margin-top: 0.5rem">您还有<span style="font-size: 1.5rem">{{num}}</span>次抽奖机会</p>
    </div>
    <div id="foot">
      <p id="title">
        抽奖说明
      </p>
      <div id="box">
        <div id="content">

        </div>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "draw",
      data(){
          return{
            num:3,
          }
      }
    }
</script>

<style scoped>
  #draw{
    height: 100%;
    width: 100%;
    position: fixed;
    background: #ee4949;
  }
  #top{
    width: 100%;
    height:3rem;
    background: red;
    overflow: hidden;
    position: relative;
  }
  #topBar{
    height: 2rem;
    width: 100%;
    line-height: 2rem;
    background: papayawhip;
    color:black;
    font-size: 1rem;
    margin-top: 1rem;
  }
  #topBar p{
    display: inline-block;
  }
  #mid{
    background: #39a9ed;
    height: 25rem;
  }
  #plate{
    height: 20rem;
    background: #98d6f4;
  }
  #foot{
    background: #42b983;
    width: 100%;
    height: 100%;
    padding: 1rem 0.8rem;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 28rem;
    box-sizing: border-box;
  }
  #title{
    font-size: 1rem;
    float: left;
    font-weight: bold;
    letter-spacing: 0.1rem;
  }

  #box{
    height: 100%;
    background: pink;
    overflow-y: scroll;
    width: 100%;
    top: 3rem;
    bottom: 0;
    left: 0;
    position: absolute;
  }
  #content{
    height: 20rem;
    background: darksalmon;
  }
</style>
